﻿using UnityEngine;
using System.Collections;

public class EnemyBullet : MonoBehaviour {

	GameObject player;
	
	// Use this for initialization
	void Start () {
	
		player = GameObject.FindGameObjectWithTag("Player");
		
		this.transform.LookAt(player.transform);
		
	}
	
	// Update is called once per frame
	void Update () {
	
		
		rigidbody.AddForce( this.transform.forward * 200 * Time.deltaTime,ForceMode.Force);
		
	}
}
